package com.example.secondhand.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.secondhand.model.shIdleItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IdleItemDao extends BaseMapper<shIdleItem> {
    int deleteByPrimaryKey(Long id);

    int insertSelective(shIdleItem record);

    int countIdleItem(String findValue);

    int countIdleItemByLable(int idleLabel);

    int countIdleItemByStatus(int status);

    List<shIdleItem> findIdleItem(String findValue, int begin, int nums);

    List<shIdleItem> findIdleItemByLable(int idleLabel, int begin, int nums);

    List<shIdleItem> getIdleItemByStatus(int status, int begin, int nums);

    int updateByPrimaryKey(shIdleItem record);

    List<shIdleItem> findIdleByList(List<Long> idList);
}